package com.example.springsecurity.mapper;

import com.example.springsecurity.domain.Major;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName MajorMapper
 * @Description TODO   专业
 * @Author lvyongwei
 * @Date 2020-09-28 9:14
 **/
@Mapper
public interface MajorMapper {

    /**
     * 获取所有专业信息
     * @return
     */
    public List<Major> getAllMajor();


    /**
     * 添加专业信息
     * @param major
     * @return
     */
    public boolean insertMajor(Major major);


    /**
     * 修改专业信息
     * @param major
     * @return
     */
    public boolean updateMajor(Major major);
}
